﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    员工个人信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% EKAABSInformationManagement.Service.customerInfo ci = ViewData["baseInfo"] as EKAABSInformationManagement.Service.customerInfo;
       if (ci != null)
       { %>
    <fieldset>
        <legend>基本信息</legend>
        <p>
            用户名:<%=ci.UserName%>
        </p>
        <p>
            所属部门:<%=ci.Team%>
        </p>
        <p>
            职位:<%=ci.Position%>
        </p>
        <p>
            系统权限:<%=ci.Role%>
        </p>
        <p>
            邮箱：<%=ci.Email%>
        </p>
    </fieldset>
    <%} List<EKAABSInformationManagement.Service.assetInfo> ai = ViewData["assetsInfo"] as List<EKAABSInformationManagement.Service.assetInfo>;
       if (ai.Count > 0)
       { %>
            <%foreach (EKAABSInformationManagement.Service.assetInfo a in ai)
              { %>
                    <fieldset>
                        <legend>资产信息</legend>
                        <p>
                            资产ID:<%=a.assetID%>
                        </p>
                        <p>
                            所有者:<%=a.owner%>
                        </p>
                        <p>
                            资产类别:<%=a.type%>
                        </p>
                        <p>
                            序列号:<%=a.Sn%>
                        </p>
                        <p>
                            网络状态:<%= Enum.GetName(typeof(EKAABSInformationManagement.Service.status),a.status)%>
                        </p>
                        <p>
                            网卡:<%=(bool)a.hasNIC?"有":"无"%>
                        </p>
                        <p>
                            MAC地址：<%=(a.MAC!=null)?a.MAC:"无"%>
                        </p>
                        <p>
                            资产更新时间:<%=a.date%>
                        </p>
                        <p>
                            网络更新时间:<%=a.latestUpdateDate%>
                        </p>
                        <p>
                            描述:<%=a.description%>
                        </p>
                    </fieldset>
            <%} %>
    <%} EKAABSInformationManagement.Database.accountInBell ei = ViewData["accInfo"] as EKAABSInformationManagement.Database.accountInBell;
       if (ei != null)
       { %>
    <fieldset>
        <legend>bell账号信息</legend>
        <p>
            账号ID:<%=ei.accountID%>
        </p>
        <p>
            员工编号:<%=ei.empNo%>
        </p>
        <p>
            域名:<%=ei.domain%>
        </p>
        <p>
            最近更新时间<%=ei.latestUpdateDate%>
        </p>
    </fieldset>
    <%} EKAABSInformationManagement.Database.cardInBell di = ViewData["cardInfo"] as EKAABSInformationManagement.Database.cardInBell;
       if (di != null)
       { %>
    <fieldset>
        <legend>磁卡信息</legend>
        <p>
            磁卡号:<%=di.cardNo%>
        </p>
        <p>
            磁卡状态:<%= Enum.GetName(typeof(EKAABSInformationManagement.Service.status),di.status)%>
        </p>
        <p>
            最近更新时间:<%=di.latestUpdateDate%>
        </p>
    </fieldset>
    <%} %>
</asp:Content>
